<style>
    .indexes{
        /*position: relative;*/
    }

    .indexes>li{
        width: 100px;
        height: 100px;
        /*position: absolute;*/
        float: left;
        margin-right: 20px;
        text-align: center;
        padding-top: 30px;
    }
</style>
<div class="col1">
    <div class="col1row1">
        <h2 class="tith2">上证指数（k线图）</h2>
<!--        <div class="lefttoday_tit" style=" height:8%">-->
<!--        </div>-->
<!--        <div class="tlbox"></div>-->
        <div id="col1row1" style="width: 90%; height: 90%;"></div>
    </div>
    <div class="col1row2">
        <h2 class="tith2">深证指数</h2>
<!--        <div class="tlbox"></div>-->
        <div id="szzs" style="width: 90%; height: 90%;"></div>
    </div>
    <div class="col1row3">
        <h2 class="tith2">创业板指数</h2>
<!--        <div id="aleftboxtmidd" class="tlbox" ></div>-->
        <div id="col1row3" style="width: 90%; height: 90%;"></div>
    </div>
</div>
<div class="col1">
    <div class="col2row1">
        <ul class="indexes">
            <li>
                <p>上证指数</p>
                <h3 class="ceeb1fd">54</h3>
                <h4 class="text-muted ">环比<img src="/img/iconup.png" height="16" />2%</h4>
            </li>
            <li>
                <p>深证指数</p>
                <h3 class=" c24c9ff">54</h3>
                <h4 class="text-muted ">环比<img src="/img/icondown.png" height="16" />3%</h4>
            </li>
            <li>
                <p>创业板指数</p>
                <h3 class=" cffff00">4</h3>
                <h4 class="text-muted ">环比<img src="/img/icondown.png" height="16" />3%</h4>
            </li>
            <li>
                <p>科创板指数</p>
                <h3 class=" cffff00">4</h3>
                <h4 class="text-muted ">环比<img src="/img/icondown.png" height="16" />3%</h4>
            </li>
        </ul>
    </div>
    <div class="col2row2">
        <h2 class="tith2">涨跌情况分析（诊大盘）</h2>
<!--        <div class="aleftboxtbott_contr"></div>-->
        <div style="height: 90%">
            <div id="userContainerIllegal" style="height: 90%"></div>
        </div>
    </div>
    <div class="col2row3">
        <h2 class="tith2">腾落线（指数、涨跌数双轴）</h2>
<!--        <div class="aleftboxtbott_contr"></div>-->
        <div style="height: 90%">
            <div id="container11" style="height: 90%"></div>
        </div>
    </div>
    <div class="col2row4">
        <h2 class="tith2">异动记录（单柱状图）</h2>
<!--        <div class="aleftboxtbott_contr"></div>-->
        <div style="height: 90%">
            <div id="yiDongJiLu" style="height: 90%"></div>
        </div>
    </div>
</div>
<div class="col1">
    <div class="col1row1"><h2 class="tith2">行业板块（横向柱状图）</h2>
<!--        <div id="aleftboxtbott"  class="aleftboxtbott_contr"></div>-->
        <div style="height: 90%">
            <div id="userContainerPersonal" style="height: 90%"></div>
        </div>
    </div>
    <div class="col1row2"><h2 class="tith2 ">概念板块（横向柱状图）</h2>
<!--        <div id="aleftboxtmiddr" class="arightboxbottcont2"></div>-->
        <div style="height: 90%">
            <div id="userContainerPersonal2" style="height: 90%"></div>
        </div>
    </div>
    <div class="col1row3"><h2 class="tith2 ">低估值板块（表格）</h2>
        <div style="height: 90%">
            <div id="userContainerPersonal3" style="height: 90%"></div>
        </div>
    </div>
</div>

<script>
    //上证指数
    function shangZhengZhiShu11(){
        var myChart = echarts.init(document.getElementById('col1row1'));

        // 数据意义：开盘(open)，收盘(close)，最低(lowest)，最高(highest)
        var data0 = splitData([
            ['2013/1/24', 1000,2320.26,2320.26,2287.3,2362.94],
            ['2013/1/25', 1000,2300,2291.3,2288.26,2308.38],
            ['2013/1/28', 1000,2295.35,2346.5,2295.35,2346.92],
            ['2013/1/29', 1000,2347.22,2358.98,2337.35,2363.8],
            ['2013/1/30', 1000,2360.75,2382.48,2347.89,2383.76],
            ['2013/1/31', 1200,2383.43,2385.42,2371.23,2391.82],
            ['2013/2/1',  1200,2377.41,2419.02,2369.57,2421.15],
            ['2013/2/4',  1200,2425.92,2428.15,2417.58,2440.38],
            ['2013/2/5',  1200,2411,2433.13,2403.3,2437.42],
            ['2013/2/6',  1200,2432.68,2434.48,2427.7,2441.73],
            ['2013/2/7',  1400,2430.69,2418.53,2394.22,2433.89],
            ['2013/2/8',  1400,2416.62,2432.4,2414.4,2443.03],
            ['2013/2/18', 1400,2441.91,2421.56,2415.43,2444.8],
            ['2013/2/19', 1400,2420.26,2382.91,2373.53,2427.07],
            ['2013/2/20', 1400,2383.49,2397.18,2370.61,2397.94],
            ['2013/2/21', 1600,2378.82,2325.95,2309.17,2378.82],
            ['2013/2/22', 1600,2322.94,2314.16,2308.76,2330.88],
            ['2013/2/25', 1600,2320.62,2325.82,2315.01,2338.78],
            ['2013/2/26', 1600,2313.74,2293.34,2289.89,2340.71],
            ['2013/2/27', 1600,2297.77,2313.22,2292.03,2324.63],
            ['2013/2/28', 1800,2322.32,2365.59,2308.92,2366.16],
            ['2013/3/1',  1800,2364.54,2359.51,2330.86,2369.65],
            ['2013/3/4',  1800,2332.08,2273.4,2259.25,2333.54],
            ['2013/3/5',  1800,2274.81,2326.31,2270.1,2328.14],
            ['2013/3/6',  1800,2333.61,2347.18,2321.6,2351.44],
            ['2013/3/7',  2000,2340.44,2324.29,2304.27,2352.02],
            ['2013/3/8',  2000,2326.42,2318.61,2314.59,2333.67],
            ['2013/3/11', 2000,2314.68,2310.59,2296.58,2320.96],
            ['2013/3/12', 2000,2309.16,2286.6,2264.83,2333.29],
            ['2013/3/13', 2000,2282.17,2263.97,2253.25,2286.33],
            ['2013/3/14', 2200,2255.77,2270.28,2253.31,2276.22],
            ['2013/3/15', 2200,2269.31,2278.4,2250,2312.08],
            ['2013/3/18', 2200,2267.29,2240.02,2239.21,2276.05],
            ['2013/3/19', 2200,2244.26,2257.43,2232.02,2261.31],
            ['2013/3/20', 2200,2257.74,2317.37,2257.42,2317.86],
            ['2013/3/21', 2400,2318.21,2324.24,2311.6,2330.81],
            ['2013/3/22', 2400,2321.4,2328.28,2314.97,2332],
            ['2013/3/25', 2400,2334.74,2326.72,2319.91,2344.89],
            ['2013/3/26', 2400,2318.58,2297.67,2281.12,2319.99],
            ['2013/3/27', 2400,2299.38,2301.26,2289,2323.48],
            ['2013/3/28', 2600,2273.55,2236.3,2232.91,2273.55],
            ['2013/3/29', 2600,2238.49,2236.62,2228.81,2246.87],
            ['2013/4/1',  2600,2229.46,2234.4,2227.31,2243.95],
            ['2013/4/2',  2600,2234.9,2227.74,2220.44,2253.42],
            ['2013/4/3',  2600,2232.69,2225.29,2217.25,2241.34],
            ['2013/4/8',  2800,2196.24,2211.59,2180.67,2212.59],
            ['2013/4/9',  2800,2215.47,2225.77,2215.47,2234.73],
            ['2013/4/10', 2800,2224.93,2226.13,2212.56,2233.04],
            ['2013/4/11', 2800,2236.98,2219.55,2217.26,2242.48],
            ['2013/4/12', 2800,2218.09,2206.78,2204.44,2226.26],
            ['2013/4/15', 3000,2199.91,2181.94,2177.39,2204.99],
            ['2013/4/16', 3000,2169.63,2194.85,2165.78,2196.43],
            ['2013/4/17', 3000,2195.03,2193.8,2178.47,2197.51],
            ['2013/4/18', 3000,2181.82,2197.6,2175.44,2206.03],
            ['2013/4/19', 3000,2201.12,2244.64,2200.58,2250.11],
            ['2013/4/22', 3200,2236.4,2242.17,2232.26,2245.12],
            ['2013/4/23', 3200,2242.62,2184.54,2182.81,2242.62],
            ['2013/4/24', 3200,2187.35,2218.32,2184.11,2226.12],
            ['2013/4/25', 3200,2213.19,2199.31,2191.85,2224.63],
            ['2013/4/26', 3200,2203.89,2177.91,2173.86,2210.58],
            ['2013/5/2',  3400,2170.78,2174.12,2161.14,2179.65],
            ['2013/5/3',  3400,2179.05,2205.5,2179.05,2222.81],
            ['2013/5/6',  3400,2212.5,2231.17,2212.5,2236.07],
            ['2013/5/7',  3400,2227.86,2235.57,2219.44,2240.26],
            ['2013/5/8',  3400,2242.39,2246.3,2235.42,2255.21],
            ['2013/5/9',  3600,2246.96,2232.97,2221.38,2247.86],
            ['2013/5/10', 3600,2228.82,2246.83,2225.81,2247.67],
            ['2013/5/13', 3600,2247.68,2241.92,2231.36,2250.85],
            ['2013/5/14', 3600,2238.9,2217.01,2205.87,2239.93],
            ['2013/5/15', 3600,2217.09,2224.8,2213.58,2225.19],
            ['2013/5/16', 3800,2221.34,2251.81,2210.77,2252.87],
            ['2013/5/17', 3800,2249.81,2282.87,2248.41,2288.09],
            ['2013/5/20', 3800,2286.33,2299.99,2281.9,2309.39],
            ['2013/5/21', 3800,2297.11,2305.11,2290.12,2305.3],
            ['2013/5/22', 3800,2303.75,2302.4,2292.43,2314.18],
            ['2013/5/23', 4000,2293.81,2275.67,2274.1,2304.95],
            ['2013/5/24', 4000,2281.45,2288.53,2270.25,2292.59],
            ['2013/5/27', 4000,2286.66,2293.08,2283.94,2301.7],
            ['2013/5/28', 4000,2293.4,2321.32,2281.47,2322.1],
            ['2013/5/29', 4000,2323.54,2324.02,2321.17,2334.33],
            ['2013/5/30', 4200,2316.25,2317.75,2310.49,2325.72],
            ['2013/5/31', 4200,2320.74,2300.59,2299.37,2325.53],
            ['2013/6/3',  4200,2300.21,2299.25,2294.11,2313.43],
            ['2013/6/4',  4200,2297.1,2272.42,2264.76,2297.1],
            ['2013/6/5',  4200,2270.71,2270.93,2260.87,2276.86],
            ['2013/6/6',  4400,2264.43,2242.11,2240.07,2266.69],
            ['2013/6/7',  4400,2242.26,2210.9,2205.07,2250.63],
            ['2013/6/13', 4400,2190.1,2148.35,2126.22,2190.1]
        ]);
        //切割数组，把数组中的日期和数据分离，返回数组中的日期和数据
        function splitData(rawData) {
            var categoryData = [];
            var values = [];
            var volumes = [];

            for (var i = 0; i < rawData.length; i++) {
                //splice 返回每组数组中被删除的第一项，即返回数组中被删除的日期
                categoryData.push(rawData[i].splice(0, 1)[0]);
                volumes.push(rawData[i].splice(0, 1)[0]);
                //数据数组，即数组中除日期外的数据
                values.push(rawData[i])
            }
            return {
                categoryData: categoryData, //数组中的日期 x轴对应的日期
                values: values,  //数组中的数据 y轴对应的数据
                volumes: volumes
            };
        }
        //计算MA平均线，N日移动平均线=N日收盘价之和/N dayCount要计算的天数(5,10,20,30)
        function calculateMA(dayCount) {
            var result = [];
            for (var i = 0, len = data0.values.length; i < len; i++) {
                if (i < dayCount) {
                    result.push('-');
                    continue; //结束单次循环，即不输出本次结果
                }
                var sum = 0;
                for (var j = 0; j < dayCount; j++) {
                    //收盘价总和
                    sum += data0.values[i - j][1];
                    //alert(sum);
                }
                result.push(sum / dayCount);
                // alert(result);
            }
            return result;
        }
        //index1的图表为成交量
        option = {
            // color: ["#003366", "#006699", "#4cabce", "#e5323e"],
            // title: { //标题
            //     text: '上证指数',
            //     left: 0,
            //     textStyle:{ //设置主标题风格
            //         color:'#fff',//设置主标题字体颜色
            //         fontStyle:'',//主标题文字风格
            //     },
            // },
            tooltip: { //提示框
                trigger: 'none', //触发类型：坐标轴触发
                // trigger: 'axis', //触发类型：坐标轴触发
                // axisPointer: { //坐标轴指示器配置项
                //     type: 'cross' //指示器类型，十字准星
                // }
                formatter: function (params) {
                    var res = '';
                    if (params[0].seriesType == 'candlestick') {
                        res = params[0].seriesName + ' ' + params[0].name;
                        res += '<br/>  开盘 : ' + params[0].value[1];
                        res += '<br/>  收盘 : ' + params[0].value[2];
                        res += '<br/>  最低 : ' + params[0].value[3];
                        res += '<br/>  最高 : ' + params[0].value[4];
                        res += '<br/>成交量 : ' + params[5].value;
                    } else {
                        res = params[1].seriesName + ' ' + params[1].name;
                        res += '<br/>  开盘 : ' + params[1].value[1];
                        res += '<br/>  收盘 : ' + params[1].value[2];
                        res += '<br/>  最低 : ' + params[1].value[3];
                        res += '<br/>  最高 : ' + params[1].value[4];
                        res += '<br/>成交量 : ' + params[0].value;
                    }
                    return res;
                }
            },
            axisPointer: {
                link: [{
                    xAxisIndex: [0, 1]
                }]
            },
            legend: { //图例控件，点击图例控制哪些系列不现实
                data: ['日K', 'MA5', 'MA10', 'MA20', 'MA30'],
                textStyle: {
                    color: "#ccc",
                }
            },
            // grid: { //直角坐标系
            //     // show:true,
            //     left: '10%', //grid组件离容器左侧的距离
            //     right: '10%',
            //     bottom: '15%',
            //     //backgroundColor:'#ccc'
            // },
            grid: [{
                left: 20,
                top: 30,
            }, {//当前json数据用于index1的图表
                left: 20,
                bottom: 20,
                height: 40
            }],
            // xAxis: {
            //     type: 'category', //坐标轴类型，类目轴
            //     data: data0.categoryData,
            //     //scale: true, //只在数字轴中有效
            //     boundaryGap : false, //刻度作为分割线，标签和数据点会在两个刻度上
            //     axisLine: {onZero: false},
            //     splitLine: {show: false}, //是否显示坐标轴轴线
            //     //splitNumber: 20, //坐标轴的分割段数，预估值，在类目轴中无效
            //     min: 'dataMin', //特殊值，数轴上的最小值作为最小刻度
            //     max: 'dataMax' //特殊值，数轴上的最大值作为最大刻度
            // },
            xAxis: [
                {
                type: 'category',
                data: data0.categoryData,
                boundaryGap : false,
                axisLine: { lineStyle: { color: '#ccc' } },
                axisLabel: {
                    formatter: function (value) {
                        return echarts.format.formatTime('MM-dd', value);
                    }
                },
                min: 'dataMin',
                max: 'dataMax',
                axisPointer: {
                    show: true
                    }
                },
                {
                type: 'category',
                gridIndex: 1,//当前json数据用于index1的图表
                data: data0.volumes,
                scale: true,
                boundaryGap : false,
                splitLine: {show: false},
                axisLabel: {show: false},
                axisTick: {show: false},
                axisLine: { lineStyle: { color: '#ccc' } },
                splitNumber: 20,
                min: 'dataMin',
                max: 'dataMax',
                axisPointer: {
                    type: 'shadow',
                    label: {show: false},
                    triggerTooltip: true,
                    handle: {
                        show: true,
                        margin: 30,
                        color: '#B80C00'
                    }
                }
            }
            ],
            // yAxis: {
            //     scale: true, //坐标刻度不强制包含零刻度
            //     splitArea: {
            //         show: false //显示分割区域
            //     }
            // },
            yAxis: [
                {
                scale: true,
                splitNumber: 2,
                axisLine: { lineStyle: { color: '#ccc' } },
                splitLine: { show: true },
                axisTick: { show: false },
                axisLabel: {
                    inside: true,
                    formatter: '{value}\n'
                    }
                },
                {
                scale: true,
                gridIndex: 1,//所在json数据用于index1的图表
                splitNumber: 2,
                axisLabel: {show: false},
                axisLine: {show: false},
                axisTick: {show: false},
                splitLine: {show: false}
            }],
            dataZoom: [ //用于区域缩放
                {
                    filterMode:'filter', //当前数据窗口外的数据被过滤掉来达到数据窗口缩放的效果 默认值filter
                    type: 'inside', //内置型数据区域缩放组件
                    start: 20, //数据窗口范围的起始百分比
                    end: 100 //数据窗口范围的结束百分比
                },
                {
                    show: true,
                    type: 'slider', //滑动条型数据区域缩放组件
                    y: '90%',
                    start: 10,
                    end: 100
                }
            ],
            series: [ //图表类型
                {
                    name: 'Volume',
                    type: 'bar',
                    xAxisIndex: 1, //表示这个json的数据放在index1的图表中
                    yAxisIndex: 1,
                    itemStyle: {
                        color: '#7fbe9e'
                    },
                    emphasis: {
                        itemStyle: {
                            color: '#140'
                        }
                    },
                    data: data0.volumes
                },
                {
                    name: '日K',
                    type: 'candlestick', //K线图
                    data: data0.values, //y轴对应的数据
                    // markPoint: { //图表标注
                    //     label: { //标注的文本
                    //         normal: { //默认不显示标注
                    //             show:true,
                    //             //position:['20%','30%'],
                    //             formatter: function (param) { //标签内容控制器
                    //                 return param != null ? Math.round(param.value) : '';
                    //             }
                    //         }
                    //     },
                    //     data: [ //标注的数据数组
                    //         // {
                    //         //     name: 'XX标点',
                    //         //     coord: ['2013/5/31', 2300], //指定数据的坐标位置
                    //         //     value: 2300,
                    //         //     itemStyle: { //图形样式
                    //         //         normal: {color: 'rgb(41,60,85)'}
                    //         //     }
                    //         // },
                    //         {
                    //             // name: 'highest value',
                    //             type: 'max', //最大值
                    //             valueDim: 'highest' //在highest维度上的最大值 最高价
                    //         },
                    //         {
                    //             // name: 'lowest value',
                    //             type: 'min',
                    //             valueDim: 'lowest' //最低价
                    //         },
                    //         // {
                    //         //     name: 'average value on close',
                    //         //     type: 'average',
                    //         //     valueDim: 'close' //收盘价
                    //         // }
                    //     ],
                    //     tooltip: { //提示框
                    //         formatter: function (param) {
                    //             return param.name + '<br>' + (param.data.coord || '');
                    //         }
                    //     }
                    // },
                    markLine: {
                        symbol: ['none', 'none'], //标线两端的标记类型，否则为向右的箭头
                        data: [
                            [
                                {
                                    name: '从最低点到最高点的连线',
                                    type: 'min', //设置该标线为最小值的线
                                    valueDim: 'lowest', //指定在哪个维度上的最小值
                                    symbol: 'circle',
                                    symbolSize: 10, //起点标记的大小
                                    label: { //normal默认，emphasis高亮
                                        normal: {show: false}, //不显示标签
                                        emphasis: {show: false} //不显示标签
                                    }
                                },
                                {
                                    type: 'max',
                                    valueDim: 'highest',
                                    symbol: 'circle',
                                    symbolSize: 10,
                                    label: {
                                        normal: {show: false},
                                        emphasis: {show: false}
                                    }
                                }
                            ],

                            {
                                name: '地板',
                                type: 'min',
                                valueDim: 'close'
                            },
                            {
                                name: '天花板',
                                type: 'max',
                                valueDim: 'close'
                            }
                        ]

                    }

                },
                { //MA5 5天内的收盘价之和/5
                    name: 'MA5',
                    type: 'line',
                    data: calculateMA(5),
                    smooth: true,
                    lineStyle: {
                        normal: {opacity: 0.5}
                    }
                },
                {
                    name: 'MA10',
                    type: 'line',
                    data: calculateMA(10),
                    smooth: true,
                    lineStyle: { //标线的样式
                        normal: {opacity: 0.5}
                    }
                },
                {
                    name: 'MA20',
                    type: 'line',
                    data: calculateMA(20),
                    smooth: true,
                    lineStyle: {
                        normal: {opacity: 0.5}
                    }
                },
                {
                    name: 'MA30',
                    type: 'line',
                    data: calculateMA(30),
                    smooth: true,
                    lineStyle: {
                        normal: {opacity: 0.5}
                    }
                },

            ]
        };
        // 使用刚指定的配置项和数据显示图表
        myChart.setOption(option);
    }
    //深证指数
    function shenZhengZhiShu12(){
        var myChart = echarts.init(document.getElementById('szzs'));
        //数据模型 time0 open1 close2 min3 max4 vol5 tag6 macd7 dif8 dea9
        //['2015-10-19',18.56,18.25,18.19,18.56,55.00,0,-0.00,0.08,0.09]
        var data = splitData([['2015-10-16',18.4,18.58,18.33,18.79,67.00,1,0.04,0.11,0.09],['2015-10-19',18.56,18.25,18.19,18.56,55.00,0,-0.00,0.08,0.09],['2015-10-20',18.3,18.22,18.05,18.41,37.00,0,0.01,0.09,0.09],['2015-10-21',18.18,18.69,18.02,18.98,89.00,0,0.03,0.10,0.08],['2015-10-22',18.42,18.29,18.22,18.48,43.00,0,-0.06,0.05,0.08],['2015-10-23',18.26,18.19,18.08,18.36,46.00,0,-0.10,0.03,0.09],['2015-10-26',18.33,18.07,17.98,18.35,65.00,0,-0.15,0.03,0.10],['2015-10-27',18.08,18.04,17.88,18.13,37.00,0,-0.19,0.03,0.12],['2015-10-28',17.96,17.86,17.82,17.99,35.00,0,-0.24,0.03,0.15],['2015-10-29',17.85,17.81,17.8,17.93,27.00,0,-0.24,0.06,0.18],['2015-10-30',17.79,17.93,17.78,18.08,43.00,0,-0.22,0.11,0.22],['2015-11-02',17.78,17.83,17.78,18.04,27.00,0,-0.20,0.15,0.25],['2015-11-03',17.84,17.9,17.84,18.06,34.00,0,-0.12,0.22,0.28],['2015-11-04',17.97,18.36,17.85,18.39,62.00,0,-0.00,0.30,0.30],['2015-11-05',18.3,18.57,18.18,19.08,177.00,0,0.07,0.33,0.30],['2015-11-06',18.53,18.68,18.3,18.71,95.00,0,0.12,0.35,0.29],['2015-11-09',18.75,19.08,18.75,19.98,202.00,1,0.16,0.35,0.27],['2015-11-10',18.85,18.64,18.56,18.99,85.00,0,0.09,0.29,0.25],['2015-11-11',18.64,18.44,18.31,18.64,50.00,0,0.06,0.27,0.23],['2015-11-12',18.55,18.27,18.17,18.57,43.00,0,0.05,0.25,0.23],['2015-11-13',18.13,18.14,18.09,18.34,35.00,0,0.05,0.24,0.22],['2015-11-16',18.01,18.1,17.93,18.17,34.00,0,0.07,0.25,0.21],['2015-11-17',18.2,18.14,18.08,18.45,58.00,0,0.11,0.25,0.20],['2015-11-18',18.23,18.16,18.0,18.45,47.00,0,0.13,0.25,0.19],['2015-11-19',18.08,18.2,18.05,18.25,32.00,0,0.15,0.24,0.17],['2015-11-20',18.15,18.15,18.11,18.29,36.00,0,0.13,0.21,0.15],['2015-11-23',18.16,18.19,18.12,18.34,47.00,0,0.11,0.18,0.13],['2015-11-24',18.23,17.88,17.7,18.23,62.00,0,0.03,0.13,0.11],['2015-11-25',17.85,17.73,17.56,17.85,66.00,0,-0.03,0.09,0.11],['2015-11-26',17.79,17.53,17.5,17.92,63.00,0,-0.10,0.06,0.11],['2015-11-27',17.51,17.04,16.9,17.51,67.00,0,-0.16,0.05,0.13],['2015-11-30',17.07,17.2,16.98,17.32,55.00,0,-0.12,0.09,0.15],['2015-12-01',17.28,17.11,16.91,17.28,39.00,0,-0.09,0.12,0.16],['2015-12-02',17.13,17.91,17.05,17.99,102.00,0,-0.01,0.17,0.18],['2015-12-03',17.8,17.78,17.61,17.98,71.00,0,-0.09,0.14,0.18],['2015-12-04',17.6,17.25,17.13,17.69,51.00,0,-0.18,0.10,0.19],['2015-12-07',17.2,17.39,17.15,17.45,43.00,0,-0.19,0.12,0.22],['2015-12-08',17.3,17.42,17.18,17.62,45.00,0,-0.23,0.13,0.24],['2015-12-09',17.33,17.39,17.32,17.59,44.00,0,-0.29,0.13,0.28],['2015-12-10',17.39,17.26,17.21,17.65,44.00,0,-0.37,0.13,0.32],['2015-12-11',17.23,16.92,16.66,17.26,114.00,1,-0.44,0.15,0.37],['2015-12-14',16.75,17.06,16.5,17.09,94.00,0,-0.44,0.21,0.44],['2015-12-15',17.03,17.03,16.9,17.06,46.00,0,-0.44,0.28,0.50],['2015-12-16',17.08,16.96,16.87,17.09,30.00,0,-0.40,0.36,0.56],['2015-12-17',17.0,17.1,16.95,17.12,50.00,0,-0.30,0.47,0.62],['2015-12-18',17.09,17.52,17.04,18.06,156.00,0,-0.14,0.59,0.66],['2015-12-21',17.43,18.23,17.35,18.45,152.00,1,0.02,0.69,0.68],['2015-12-22',18.14,18.27,18.06,18.32,94.00,0,0.08,0.72,0.68],['2015-12-23',18.28,18.19,18.17,18.71,108.00,0,0.13,0.73,0.67],['2015-12-24',18.18,18.14,18.01,18.31,37.00,0,0.19,0.74,0.65],['2015-12-25',18.22,18.33,18.2,18.36,48.00,0,0.26,0.75,0.62],['2015-12-28',18.35,17.84,17.8,18.39,48.00,0,0.27,0.72,0.59],['2015-12-29',17.83,17.94,17.71,17.97,36.00,0,0.36,0.73,0.55],['2015-12-30',17.9,18.26,17.55,18.3,71.00,1,0.43,0.71,0.50],['2015-12-31',18.12,17.99,17.91,18.33,72.00,0,0.40,0.63,0.43],['2016-01-04',17.91,17.28,17.16,17.95,37.00,1,0.34,0.55,0.38],['2016-01-05',17.17,17.23,17.0,17.55,51.00,0,0.37,0.51,0.33],['2016-01-06',17.2,17.31,17.06,17.33,31.00,0,0.37,0.46,0.28],['2016-01-07',17.15,16.67,16.51,17.15,19.00,0,0.30,0.37,0.22],['2016-01-08',16.8,16.81,16.61,17.06,60.00,0,0.29,0.32,0.18],['2016-01-11',16.68,16.04,16.0,16.68,65.00,0,0.20,0.24,0.14],['2016-01-12',16.03,15.98,15.88,16.25,46.00,0,0.20,0.21,0.11],['2016-01-13',16.21,15.87,15.78,16.21,57.00,0,0.20,0.18,0.08],['2016-01-14',15.55,15.89,15.52,15.96,42.00,0,0.20,0.16,0.05],['2016-01-15',15.87,15.48,15.45,15.92,34.00,1,0.17,0.11,0.02],['2016-01-18',15.39,15.42,15.36,15.7,26.00,0,0.21,0.10,-0.00],['2016-01-19',15.58,15.71,15.35,15.77,38.00,0,0.25,0.09,-0.03],['2016-01-20',15.56,15.52,15.24,15.68,38.00,0,0.23,0.05,-0.07],['2016-01-21',15.41,15.3,15.28,15.68,35.00,0,0.21,0.00,-0.10],['2016-01-22',15.48,15.28,15.13,15.49,30.00,0,0.21,-0.02,-0.13],['2016-01-25',15.29,15.48,15.2,15.49,21.00,0,0.20,-0.06,-0.16],['2016-01-26',15.33,14.86,14.78,15.39,30.00,0,0.12,-0.13,-0.19],['2016-01-27',14.96,15.0,14.84,15.22,51.00,0,0.13,-0.14,-0.20],['2016-01-28',14.96,14.72,14.62,15.06,25.00,0,0.10,-0.17,-0.22],['2016-01-29',14.75,14.99,14.62,15.08,36.00,0,0.13,-0.17,-0.24],['2016-02-01',14.98,14.72,14.48,15.18,27.00,0,0.10,-0.21,-0.26],['2016-02-02',14.65,14.85,14.65,14.95,18.00,0,0.11,-0.21,-0.27],['2016-02-03',14.72,14.67,14.55,14.8,23.00,0,0.10,-0.24,-0.29],['2016-02-04',14.79,14.88,14.69,14.93,22.00,0,0.13,-0.24,-0.30],['2016-02-05',14.9,14.86,14.78,14.93,16.00,0,0.12,-0.26,-0.32],['2016-02-15',14.5,14.66,14.47,14.82,19.00,0,0.11,-0.28,-0.34],['2016-02-16',14.77,14.94,14.72,15.05,26.00,0,0.14,-0.28,-0.35],['2016-02-17',14.95,15.03,14.88,15.07,38.00,0,0.12,-0.31,-0.37],['2016-02-18',14.95,14.9,14.87,15.06,28.00,0,0.07,-0.35,-0.39],['2016-02-19',14.9,14.75,14.68,14.94,22.00,0,0.03,-0.38,-0.40],['2016-02-22',14.88,15.01,14.79,15.11,38.00,1,0.01,-0.40,-0.40],['2016-02-23',15.01,14.83,14.72,15.01,24.00,0,-0.09,-0.45,-0.40],['2016-02-24',14.75,14.81,14.67,14.87,21.00,0,-0.17,-0.48,-0.39],['2016-02-25',14.81,14.25,14.21,14.81,51.00,1,-0.27,-0.50,-0.37],['2016-02-26',14.35,14.45,14.28,14.57,28.00,0,-0.26,-0.46,-0.33],['2016-02-29',14.43,14.56,14.04,14.6,48.00,0,-0.25,-0.41,-0.29],['2016-03-01',14.56,14.65,14.36,14.78,32.00,0,-0.21,-0.36,-0.25],['2016-03-02',14.79,14.96,14.72,14.97,60.00,0,-0.13,-0.29,-0.22],['2016-03-03',14.95,15.15,14.91,15.19,53.00,1,-0.05,-0.23,-0.21],['2016-03-04',15.14,15.97,15.02,16.02,164.00,1,0.06,-0.17,-0.20],['2016-03-07',15.9,15.78,15.65,16.0,41.00,0,0.04,-0.19,-0.21],['2016-03-08',15.78,15.96,15.21,15.99,45.00,0,0.05,-0.19,-0.21],['2016-03-09',15.73,16.05,15.41,16.08,74.00,0,0.03,-0.20,-0.22],['2016-03-10',15.82,15.66,15.65,15.98,19.00,0,-0.02,-0.23,-0.22],['2016-03-11',15.59,15.76,15.42,15.78,32.00,0,0.01,-0.22,-0.22],['2016-03-14',15.78,15.72,15.65,16.04,31.00,0,0.03,-0.20,-0.22],['2016-03-15',15.81,15.86,15.6,15.99,35.00,0,0.10,-0.18,-0.23],['2016-03-16',15.88,16.42,15.79,16.45,123.00,0,0.17,-0.16,-0.24],['2016-03-17',16.39,16.23,16.11,16.4,46.00,0,0.14,-0.20,-0.26],['2016-03-18',16.39,16.17,16.04,16.4,59.00,0,0.13,-0.22,-0.28],['2016-03-21',16.21,16.22,16.11,16.44,50.00,0,0.12,-0.24,-0.30],['2016-03-22',16.27,16.19,16.16,16.42,33.00,0,0.10,-0.27,-0.32],['2016-03-23',16.26,16.18,16.18,16.29,19.00,0,0.08,-0.30,-0.33],['2016-03-24',16.18,16.11,16.01,16.23,23.00,0,0.04,-0.33,-0.35],['2016-03-25',16.12,16.13,16.1,16.2,15.00,0,0.00,-0.35,-0.35],['2016-03-28',16.15,15.85,15.81,16.2,22.00,0,-0.06,-0.38,-0.35],['2016-03-29',15.9,15.79,15.76,16.05,19.00,0,-0.06,-0.37,-0.34],['2016-03-30',15.79,16.24,15.78,16.3,29.00,0,-0.03,-0.35,-0.33],['2016-03-31',16.3,16.09,16.02,16.35,25.00,0,-0.07,-0.37,-0.33],['2016-04-01',16.18,16.27,15.98,16.3,38.00,0,-0.08,-0.36,-0.32],['2016-04-05',16.13,16.34,16.07,16.37,39.00,0,-0.13,-0.37,-0.31],['2016-04-06',16.21,16.26,16.19,16.35,30.00,0,-0.20,-0.39,-0.29],['2016-04-07',16.32,16.1,16.05,16.35,29.00,1,-0.26,-0.39,-0.26],['2016-04-08',16.0,16.16,15.98,16.21,22.00,0,-0.28,-0.37,-0.23],['2016-04-11',16.16,16.31,16.15,16.57,31.00,0,-0.30,-0.33,-0.19],['2016-04-12',16.41,16.29,16.12,16.41,17.00,0,-0.31,-0.30,-0.14],['2016-04-13',16.39,16.48,16.0,16.68,40.00,0,-0.30,-0.25,-0.10],['2016-04-14',16.5,16.46,16.37,16.68,22.00,0,-0.27,-0.19,-0.06],['2016-04-15',16.56,16.93,16.46,17.04,58.00,0,-0.20,-0.12,-0.02],['2016-04-18',16.76,17.06,16.72,17.27,50.00,0,-0.16,-0.07,0.01],['2016-04-19',17.21,17.11,17.02,17.23,30.00,0,-0.12,-0.02,0.03],['2016-04-20',17.11,17.33,16.8,17.36,78.00,0,-0.04,0.03,0.05],['2016-04-21',17.27,17.69,17.17,17.93,79.00,0,0.05,0.08,0.06],['2016-04-22',17.6,17.87,17.56,18.02,55.00,0,0.09,0.10,0.05],['2016-04-25',17.75,17.9,17.41,17.96,39.00,1,0.11,0.09,0.04],['2016-04-26',17.81,17.91,17.6,17.95,39.00,0,0.12,0.08,0.02],['2016-04-27',17.9,17.88,17.81,17.95,25.00,0,0.12,0.06,0.00],['2016-04-28',17.93,17.88,17.67,17.93,28.00,0,0.11,0.04,-0.01],['2016-04-29',17.87,17.75,17.73,17.92,19.00,0,0.08,0.01,-0.03],['2016-05-03',17.79,17.7,17.56,17.85,35.00,0,0.05,-0.01,-0.04],['2016-05-04',17.7,17.65,17.59,17.71,24.00,0,0.02,-0.04,-0.05],['2016-05-05',17.65,17.62,17.46,17.7,20.00,0,-0.03,-0.06,-0.05],['2016-05-06',17.62,17.32,17.3,17.65,29.00,0,-0.10,-0.09,-0.05],['2016-05-09',17.33,17.3,17.21,17.45,23.00,0,-0.13,-0.10,-0.03],['2016-05-10',17.11,17.04,16.98,17.41,28.00,0,-0.15,-0.09,-0.01],['2016-05-11',17.06,17.15,17.06,17.32,20.00,0,-0.12,-0.05,0.01],['2016-05-12',17.02,17.46,17.02,17.58,26.00,0,-0.07,-0.01,0.03],['2016-05-13',17.41,17.57,17.34,17.62,23.00,0,-0.06,0.01,0.03],['2016-05-16',17.55,17.5,17.48,17.64,37.00,0,-0.06,0.01,0.04],['2016-05-17',17.49,17.48,17.39,17.53,13.00,0,-0.03,0.03,0.05],['2016-05-18',17.41,17.82,17.39,17.87,46.00,0,0.01,0.06,0.06],['2016-05-19',17.74,17.81,17.67,17.86,17.00,0,-0.01,0.05,0.05],['2016-05-20',17.76,17.88,17.7,17.93,14.00,0,-0.03,0.04,0.06],['2016-05-23',17.88,17.52,17.48,17.97,16.00,0,-0.09,0.02,0.06],['2016-05-24',17.51,17.33,17.32,17.51,8.00,0,-0.09,0.03,0.07],['2016-05-25',17.59,17.55,17.44,17.59,10.00,0,-0.03,0.07,0.08],['2016-05-26',17.5,17.69,17.5,17.8,12.00,0,0.00,0.09,0.09],['2016-05-27',17.77,17.66,17.62,17.77,7.00,0,0.03,0.10,0.09],['2016-05-30',17.75,17.84,17.62,17.87,20.00,0,0.08,0.12,0.08],['2016-05-31',17.88,18.0,17.81,18.03,41.00,0,0.10,0.12,0.07],['2016-06-01',18.09,17.83,17.73,18.09,22.00,0,0.08,0.10,0.06],['2016-06-02',17.82,17.73,17.66,17.88,10.00,0,0.07,0.08,0.05],['2016-06-03',17.8,17.78,17.71,17.83,9.00,0,0.08,0.08,0.04],['2016-06-06',17.73,17.64,17.56,17.83,12.00,0,0.07,0.06,0.03],['2016-06-07',17.76,17.8,17.59,17.87,11.00,0,0.08,0.06,0.02],['2016-06-08',17.75,17.77,17.65,17.84,9.00,0,0.04,0.03,0.01],['2016-06-13',17.58,17.32,17.29,17.79,16.00,0,-0.02,-0.01,0.00],['2016-06-14',17.33,17.38,17.29,17.5,10.00,0,-0.01,0.00,0.00],['2016-06-15',17.25,17.39,17.25,17.46,18.00,0,0.00,0.01,0.00],['2016-06-16',17.26,17.4,17.26,17.46,22.00,0,0.01,0.01,0.00],['2016-06-17',17.38,17.5,17.37,17.67,13.00,0,0.03,0.02,0.00],['2016-06-20',17.62,17.51,17.42,17.63,15.00,0,0.03,0.01,-0.00],['2016-06-21',17.53,17.54,17.5,17.7,11.00,0,0.02,0.00,-0.01],['2016-06-22',17.5,17.5,17.46,17.6,10.00,0,-0.01,-0.01,-0.01],['2016-06-23',17.52,17.26,17.24,17.53,16.00,0,-0.04,-0.03,-0.01],['2016-06-24',17.26,17.25,17.18,17.38,60.00,0,-0.03,-0.02,-0.00],['2016-06-27',17.25,17.28,17.18,17.33,19.00,0,-0.01,-0.00,0.00],['2016-06-28',17.25,17.29,17.21,17.32,13.00,0,0.02,0.01,0.00],['2016-06-29',17.31,17.45,17.27,17.49,21.00,0,0.07,0.04,0.00],['2016-06-30',17.47,17.5,17.39,17.55,17.00,0,0.11,0.04,-0.01],['2016-07-01',17.5,17.63,17.49,17.66,10.00,0,0.14,0.05,-0.03],['2016-07-04',17.63,17.72,17.63,17.92,17.00,0,0.16,0.03,-0.05],['2016-07-05',17.79,17.56,17.45,17.79,18.00,0,0.14,0.00,-0.07],['2016-07-06',17.53,17.42,17.31,17.54,20.00,0,0.14,-0.02,-0.09],['2016-07-07',17.41,17.51,17.35,17.52,15.00,0,0.16,-0.03,-0.11],['2016-07-08',17.5,17.39,17.35,17.51,15.00,0,0.16,-0.05,-0.13],['2016-07-11',17.49,17.48,17.4,17.55,16.00,0,0.17,-0.07,-0.15],['2016-07-12',17.48,17.71,17.46,17.75,25.00,0,0.16,-0.10,-0.18],['2016-07-13',17.13,17.05,17.02,17.39,28.00,0,0.07,-0.17,-0.20],['2016-07-14',17.07,17.09,17.0,17.16,12.00,0,0.08,-0.17,-0.21],['2016-07-15',17.08,17.14,17.08,17.17,11.00,0,0.09,-0.18,-0.22],['2016-07-18',17.15,17.26,17.13,17.49,24.00,0,0.10,-0.19,-0.23],['2016-07-19',17.26,17.12,17.09,17.33,13.00,0,0.07,-0.21,-0.25],['2016-07-20',17.1,17.07,17.02,17.14,11.00,0,0.06,-0.23,-0.26],['2016-07-21',17.07,17.24,17.07,17.27,14.00,0,0.07,-0.23,-0.27],['2016-07-22',17.25,17.08,17.03,17.25,10.00,0,0.04,-0.26,-0.28],['2016-07-25',17.09,17.12,17.01,17.18,8.00,0,0.04,-0.26,-0.28],['2016-07-26',17.05,17.17,17.05,17.2,11.00,0,0.04,-0.27,-0.29],['2016-07-27',17.2,17.37,16.89,17.38,32.00,0,0.02,-0.28,-0.29],['2016-07-28',17.19,17.14,17.09,17.29,19.00,0,-0.04,-0.32,-0.30],['2016-07-29',17.15,17.16,17.04,17.23,12.00,0,-0.08,-0.33,-0.29],['2016-08-01',17.15,17.18,17.1,17.24,19.00,0,-0.13,-0.34,-0.28],['2016-08-02',17.21,17.15,17.12,17.25,9.00,0,-0.19,-0.36,-0.26],['2016-08-03',17.08,17.07,17.01,17.16,9.00,0,-0.25,-0.36,-0.24],['2016-08-04',17.11,17.06,16.98,17.12,11.00,1,-0.29,-0.35,-0.20],['2016-08-05',17.06,17.1,17.05,17.15,16.00,0,-0.33,-0.32,-0.16],['2016-08-08',17.14,17.13,17.07,17.15,13.00,0,-0.35,-0.29,-0.11],['2016-08-09',17.13,17.17,17.1,17.2,25.00,0,-0.35,-0.24,-0.06],['2016-08-10',17.17,17.28,17.15,17.29,18.00,0,-0.31,-0.17,-0.01],['2016-08-11',17.3,17.45,17.26,17.87,31.00,0,-0.24,-0.09,0.03],['2016-08-12',17.51,17.99,17.47,18.0,44.00,0,-0.14,-0.00,0.07],['2016-08-15',18.1,18.42,18.02,18.99,81.00,0,-0.09,0.04,0.09],['2016-08-16',18.64,18.31,18.12,18.87,60.00,0,-0.10,0.05,0.10],['2016-08-17',18.43,18.4,18.31,18.68,21.00,0,-0.08,0.08,0.11],['2016-08-18',18.33,18.23,18.13,18.65,32.00,0,-0.07,0.09,0.13],['2016-08-19',18.34,18.62,18.31,18.75,39.00,0,0.00,0.14,0.14],['2016-08-22',18.62,18.69,18.51,18.8,20.00,0,0.01,0.14,0.13],['2016-08-23',18.61,18.66,18.52,19.0,28.00,0,0.01,0.14,0.13],['2016-08-24',18.66,18.62,18.43,18.7,19.00,0,0.00,0.13,0.13],['2016-08-25',18.57,18.51,18.19,18.64,19.00,0,-0.00,0.13,0.13],['2016-08-26',18.49,18.55,18.44,18.6,16.00,0,0.01,0.13,0.13],['2016-08-29',18.46,18.27,18.03,18.48,20.00,0,0.01,0.13,0.13],['2016-08-30',18.24,18.44,18.23,18.52,19.00,0,0.07,0.17,0.13],['2016-08-31',18.36,18.63,18.36,18.76,15.00,0,0.13,0.18,0.12],['2016-09-01',18.6,18.62,18.55,18.78,15.00,0,0.16,0.18,0.10],['2016-09-02',18.52,18.68,18.48,18.72,17.00,0,0.19,0.17,0.08],['2016-09-05',18.68,18.75,18.57,18.82,19.00,0,0.20,0.15,0.05],['2016-09-06',18.75,18.51,18.43,18.78,17.00,0,0.18,0.11,0.02],['2016-09-07',18.51,18.56,18.4,18.62,17.00,0,0.17,0.08,-0.00],['2016-09-08',18.58,18.53,18.48,18.63,8.00,0,0.13,0.04,-0.03],['2016-09-09',18.52,18.33,18.31,18.57,8.00,0,0.06,-0.02,-0.05],['2016-09-12',18.16,17.9,17.81,18.18,28.00,0,-0.02,-0.07,-0.06],['2016-09-13',17.91,17.91,17.9,18.08,13.00,0,-0.05,-0.08,-0.05],['2016-09-14',17.99,17.54,17.48,17.99,22.00,0,-0.09,-0.09,-0.05],['2016-09-19',17.55,17.81,17.55,17.88,16.00,0,-0.06,-0.06,-0.03],['2016-09-20',17.8,17.74,17.67,17.85,10.00,0,-0.06,-0.05,-0.02],['2016-09-21',17.75,17.88,17.75,17.95,7.00,0,-0.03,-0.03,-0.02],['2016-09-22',17.99,17.97,17.88,18.17,12.00,0,-0.02,-0.02,-0.01],['2016-09-23',17.99,17.98,17.93,18.09,13.00,0,-0.01,-0.01,-0.01],['2016-09-26',17.91,18.0,17.85,18.09,14.00,0,-0.00,-0.01,-0.01],['2016-09-27',17.97,18.07,17.94,18.1,10.00,0,0.00,-0.01,-0.01],['2016-09-28',18.06,17.89,17.83,18.06,10.00,0,-0.00,-0.01,-0.01],['2016-09-29',17.96,18.0,17.92,18.07,10.00,0,0.03,0.01,-0.01],['2016-09-30',17.96,18.0,17.95,18.1,8.00,0,0.06,0.02,-0.01],['2016-10-10',18.03,18.3,18.03,18.38,19.00,0,0.11,0.04,-0.02],['2016-10-11',18.33,18.33,18.26,18.49,12.00,0,0.10,0.02,-0.04],['2016-10-12',18.28,18.15,18.1,18.31,10.00,0,0.07,-0.02,-0.05],['2016-10-13',18.15,18.09,18.05,18.21,10.00,0,0.06,-0.03,-0.06],['2016-10-14',18.1,18.1,18.0,18.15,12.00,0,0.04,-0.05,-0.07],['2016-10-17',18.07,17.86,17.83,18.1,12.00,0,0.01,-0.07,-0.08],['2016-10-18',17.86,17.93,17.84,17.99,14.00,0,0.03,-0.07,-0.08],['2016-10-19',17.93,17.88,17.83,18.05,11.00,0,0.03,-0.07,-0.08],['2016-10-20',17.9,17.89,17.83,17.98,12.00,0,0.05,-0.06,-0.09],['2016-10-21',17.91,17.91,17.82,17.93,12.00,0,0.07,-0.06,-0.09],['2016-10-24',17.93,18.31,17.86,18.42,29.00,0,0.11,-0.05,-0.10],['2016-10-25',18.31,18.13,18.09,18.46,19.00,0,0.06,-0.09,-0.12],['2016-10-26',18.12,17.97,17.95,18.15,14.00,0,0.02,-0.12,-0.13],['2016-10-27',18.06,17.81,17.77,18.06,21.00,0,-0.01,-0.13,-0.13],['2016-10-28',17.8,17.9,17.8,18.05,20.00,0,-0.01,-0.13,-0.13],['2016-10-31',17.87,17.86,17.72,17.96,12.00,0,-0.02,-0.14,-0.13],['2016-11-01',17.87,17.98,17.79,17.99,18.00,0,-0.03,-0.14,-0.12],['2016-11-02',17.86,17.84,17.76,17.94,30.00,0,-0.06,-0.15,-0.12],['2016-11-03',17.83,17.93,17.79,17.97,27.00,0,-0.07,-0.14,-0.11],['2016-11-04',17.9,17.91,17.87,18.0,26.00,0,-0.09,-0.15,-0.10],['2016-11-07',17.91,17.89,17.85,17.93,20.00,0,-0.11,-0.14,-0.09],['2016-11-08',17.92,17.99,17.89,18.06,26.00,0,-0.12,-0.13,-0.07],['2016-11-09',18.0,17.89,17.77,18.08,34.00,0,-0.15,-0.13,-0.06],['2016-11-10',17.95,18.0,17.94,18.11,27.00,0,-0.15,-0.11,-0.03],['2016-11-11',17.95,18.02,17.93,18.08,27.00,0,-0.17,-0.10,-0.01],['2016-11-14',18.0,18.04,17.95,18.25,35.00,0,-0.18,-0.08,0.01],['2016-11-15',18.1,18.18,18.03,18.24,25.00,0,-0.18,-0.06,0.04],['2016-11-16',18.23,18.12,18.05,18.29,23.00,0,-0.21,-0.04,0.06],['2016-11-17',18.11,18.12,18.01,18.14,27.00,0,-0.21,-0.01,0.09],['2016-11-18',18.12,18.1,18.03,18.16,18.00,0,-0.19,0.03,0.12],['2016-11-21',18.08,18.34,18.08,18.68,41.00,0,-0.13,0.08,0.15],['2016-11-22',18.37,18.37,18.28,18.49,52.00,0,-0.09,0.12,0.17],['2016-11-23',18.4,18.84,18.37,18.9,66.00,0,-0.02,0.17,0.18],['2016-11-24',18.77,18.74,18.61,18.97,26.00,0,-0.02,0.17,0.18],['2016-11-25',18.8,18.99,18.66,19.02,40.00,0,-0.01,0.18,0.19],['2016-11-28',19.1,18.65,18.52,19.2,85.00,0,-0.06,0.16,0.19],['2016-11-29',18.65,18.75,18.51,18.76,49.00,0,-0.06,0.17,0.20],['2016-11-30',18.76,18.55,18.47,18.82,39.00,0,-0.08,0.17,0.21],['2016-12-01',18.55,18.49,18.41,18.64,53.00,0,-0.06,0.19,0.22],['2016-12-02',18.53,18.49,18.24,18.54,48.00,0,-0.02,0.21,0.23],['2016-12-05',18.39,18.66,18.34,18.67,50.00,0,0.03,0.25,0.23],['2016-12-06',18.66,18.6,18.57,18.78,31.00,0,0.08,0.26,0.23],['2016-12-07',18.65,18.62,18.58,18.71,12.00,0,0.15,0.29,0.21],['2016-12-08',18.67,18.76,18.62,18.88,26.00,0,0.25,0.32,0.19],['2016-12-09',18.76,19.2,18.75,19.34,62.00,0,0.34,0.33,0.16],['2016-12-12',19.16,19.25,18.9,19.65,79.00,1,0.34,0.28,0.11],['2016-12-13',19.09,18.88,18.81,19.2,24.00,0,0.27,0.20,0.06],['2016-12-14',18.8,18.82,18.8,19.14,32.00,0,0.23,0.13,0.02],['2016-12-15',18.73,18.24,18.2,18.73,36.00,0,0.13,0.05,-0.01],['2016-12-16',18.24,18.18,18.12,18.4,24.00,0,0.10,0.02,-0.03],['2016-12-19',18.15,18.01,17.93,18.18,24.00,0,0.06,-0.02,-0.05],['2016-12-20',17.99,17.79,17.7,17.99,29.00,1,0.02,-0.05,-0.05],['2016-12-21',17.83,17.81,17.77,17.98,30.00,0,0.00,-0.05,-0.06],['2016-12-22',17.85,17.72,17.65,17.85,21.00,0,-0.03,-0.07,-0.06],['2016-12-23',17.77,17.6,17.54,17.77,18.00,0,-0.04,-0.08,-0.05],['2016-12-26',17.56,17.75,17.39,17.77,16.00,0,-0.04,-0.07,-0.05],['2016-12-27',17.73,17.71,17.65,17.82,10.00,0,-0.06,-0.07,-0.04],['2016-12-28',17.72,17.62,17.49,17.77,26.00,0,-0.09,-0.07,-0.03],['2016-12-29',17.6,17.49,17.43,17.62,28.00,0,-0.09,-0.06,-0.02],['2016-12-30',17.53,17.6,17.47,17.61,22.00,0,-0.05,-0.03,-0.01],['2017-01-03',17.6,17.92,17.57,17.98,28.00,1,0.00,0.00,0.00]]);

        //数组处理
        function splitData(rawData) {
            var datas = [];
            var times = [];
            var vols = [];
            var macds = []; var difs = []; var deas = [];
            return {
                datas: datas,
                times: times,
                vols: vols,
                macds: macds,
                difs: difs,
                deas: deas
            };
        }

        //分段计算
        function fenduans(){
            var markLineData = [];
            var idx = 0; var tag = 0; var vols = 0;
            for (var i = 0; i < data.times.length; i++) {
                //初始化数据
                if(data.datas[i][5] != 0 && tag == 0){
                    idx = i; vols = data.datas[i][4]; tag = 1;
                }
                if(tag == 1){ vols += data.datas[i][4]; }
                if(data.datas[i][5] != 0 && tag == 1){
                    markLineData.push([{
                        xAxis: idx,
                        yAxis: data.datas[idx][1]>data.datas[idx][0]?(data.datas[idx][3]).toFixed(2):(data.datas[idx][2]).toFixed(2),
                        value: vols
                    }, {
                        xAxis: i,
                        yAxis: data.datas[i][1]>data.datas[i][0]?(data.datas[i][3]).toFixed(2):(data.datas[i][2]).toFixed(2)
                    }]);
                    idx = i; vols = data.datas[i][4]; tag = 2;
                }

                //更替数据
                if(tag == 2){ vols += data.datas[i][4]; }
                if(data.datas[i][5] != 0 && tag == 2){
                    markLineData.push([{
                        xAxis: idx,
                        yAxis: data.datas[idx][1]>data.datas[idx][0]?(data.datas[idx][3]).toFixed(2):(data.datas[idx][2]).toFixed(2),
                        value: (vols/(i-idx+1)).toFixed(2)+' M'
                    }, {
                        xAxis: i,
                        yAxis: data.datas[i][1]>data.datas[i][0]?(data.datas[i][3]).toFixed(2):(data.datas[i][2]).toFixed(2)
                    }]);
                    idx = i; vols = data.datas[i][4];
                }
            }
            return markLineData;
        }

        //MA计算公式
        function calculateMA(dayCount) {
            var result = [];
            for (var i = 0, len = data.times.length; i < len; i++) {
                if (i < dayCount) {
                    result.push('-');
                    continue;
                }
                var sum = 0;
                for (var j = 0; j < dayCount; j++) {
                    sum += data.datas[i - j][1];
                }
                result.push((sum / dayCount).toFixed(2));
            }
            return result;
        }

        var option = {
            title: {
                text: 'K线周期图表(matols.com)',
                left: 0
            },
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'line'
                }
            },
            legend: {
                data: ['KLine', 'MA5']
            },
            grid: [           {
                left: '3%',
                right: '1%',
                height: '60%'
            },{
                left: '3%',
                right: '1%',
                top: '71%',
                height: '10%'
            },{
                left: '3%',
                right: '1%',
                top: '82%',
                height: '14%'
            }],
            xAxis: [{
                type: 'category',
                data: data.times,
                scale: true,
                boundaryGap: false,
                axisLine: { onZero: false },
                splitLine: { show: false },
                splitNumber: 20,
                min: 'dataMin',
                max: 'dataMax'
            },{
                type: 'category',
                gridIndex: 1,
                data: data.times,
                axisLabel: {show: false}
            },{
                type: 'category',
                gridIndex: 2,
                data: data.times,
                axisLabel: {show: false}
            }],
            yAxis: [{
                scale: true,
                splitArea: {
                    show: false
                }
            },{
                gridIndex: 1,
                splitNumber: 3,
                axisLine: {onZero: false},
                axisTick: {show: false},
                splitLine: {show: false},
                axisLabel: {show: true}
            },{
                gridIndex: 2,
                splitNumber: 4,
                axisLine: {onZero: false},
                axisTick: {show: false},
                splitLine: {show: false},
                axisLabel: {show: true}
            }],
            dataZoom: [{
                type: 'inside',
                xAxisIndex: [0, 0],
                start: 20,
                end: 100
            },{
                show: true,
                xAxisIndex: [0, 1],
                type: 'slider',
                top: '97%',
                start: 20,
                end: 100
            },{
                show: false,
                xAxisIndex: [0, 2],
                type: 'slider',
                start: 20,
                end: 100
            }],
            series: [{
                name: 'K线周期图表(matols.com)',
                type: 'candlestick',
                data: data.datas,
                itemStyle: {
                    normal: {
                        color: '#ef232a',
                        color0: '#14b143',
                        borderColor: '#ef232a',
                        borderColor0: '#14b143'
                    }
                },
                markArea: {
                    silent: true,
                    itemStyle: {
                        normal: {
                            color: 'Honeydew'
                        }
                    },
                    data: fenduans()
                },
                markPoint: {
                    data: [
                        {type: 'max', name: '最大值'},
                        {type: 'min', name: '最小值'}
                    ]
                },
                markLine: {
                    label: {
                        normal: {
                            position: 'middle',
                            textStyle:{color:'Blue',fontSize: 15}
                        }
                    },
                    data: fenduans(),
                    symbol: ['circle', 'none']

                }
            }, {
                name: 'MA5',
                type: 'line',
                data: calculateMA(5),
                smooth: true,
                lineStyle: {
                    normal: {
                        opacity: 0.5
                    }
                }
            },{
                name: 'Volumn',
                type: 'bar',
                xAxisIndex: 1,
                yAxisIndex: 1,
                data: data.vols,
                itemStyle: {
                    normal: {
                        color: function(params) {
                            var colorList;
                            if (data.datas[params.dataIndex][1]>data.datas[params.dataIndex][0]) {
                                colorList = '#ef232a';
                            } else {
                                colorList = '#14b143';
                            }
                            return colorList;
                        },
                    }
                }
            },{
                name: 'MACD',
                type: 'bar',
                xAxisIndex: 2,
                yAxisIndex: 2,
                data: data.macds,
                itemStyle: {
                    normal: {
                        color: function(params) {
                            var colorList;
                            if (params.data >= 0) {
                                colorList = '#ef232a';
                            } else {
                                colorList = '#14b143';
                            }
                            return colorList;
                        },
                    }
                }
            },{
                name: 'DIF',
                type: 'line',
                xAxisIndex: 2,
                yAxisIndex: 2,
                data: data.difs
            },{
                name: 'DEA',
                type: 'line',
                xAxisIndex: 2,
                yAxisIndex: 2,
                data: data.deas
            }
            ]
        };

        myChart.setOption(option);
    }
    //创业板指数
    function chuangYeBanZhiShu13(){

    }
    //科创板指数
    function keChuangBanZhiShu14(){

    }
    //涨跌情况分析（诊大盘）
    function zhangDieFengXi22(){
        var myChart = echarts.init($("#userContainerIllegal")[0]);
        var option = {
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            grid: {
                x: 46,
                y:30,
                x2:32,
                y2:40,
                borderWidth: 0
            },
            calculable : true,
            xAxis : [
                {
                    type : 'category',
                    data:['安保部', '售票部', '保洁部', '后勤部', '指导部', '急救部'],

                    splitLine: {
                        show: false
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#a4a7ab',
                            align: 'center'
                        }
                    }
                }
            ],
            yAxis : [
                {
                    type : 'value',
                    splitLine: {
                        show: false
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#a4a7ab'
                        }
                    }
                }
            ],
            series : [
                {
                    name:'违规次数（次）',
                    type:'bar',
                    barWidth:'30',
                    data:[124, 522, 235, 365, 214, 265, 58, 4,6, 7, 3, 3, 1],
                    itemStyle: {
                        normal: {
                            color:"#269fec"
                        }
                    }

                }
            ]
        };
        myChart.setOption(option);
    }
    //腾落线
    function tengLuoXian23(){
        var myChart = echarts.init(document.getElementById('container11'));
        var option = {
            tooltip : {
                trigger: 'axis'
            },
            grid: {
                x: 46,
                y:30,
                x2:32,
                y2:40,
                borderWidth: 0
            },
            calculable : true,
            xAxis : [
                {
                    type : 'category',
                    boundaryGap : false,
                    data : ['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月'],
                    splitLine: {
                        show: false
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#a4a7ab'
                        }
                    }
                }
            ],
            yAxis : [
                {
                    type : 'value',
                    name : '指数',
                    splitLine: {
                        show: false
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#a4a7ab'
                        }
                    }

                },
                {
                    type : 'value',
                    name : '涨跌数',
                    splitLine: {
                        show: false
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#a4a7ab'
                        }
                    }

                }
            ],
            series : [
                {
                    name:'散客',
                    type:'line',
                    stack: '人',
                    data:[120, 132, 101, 134, 90, 230, 210,230,245,256,278,300],
                    itemStyle: {
                        normal: {
                            color:"#e15828"
                        }
                    }
                },
                {
                    name:'团队',
                    type:'line',
                    stack: '人',
                    yAxisIndex: 1,
                    data:[220, 182, 191, 234, 290, 330, 310,230,245,256,278,300],
                    itemStyle: {
                        normal: {
                            color:"#2e7cff"
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    }
    //异动记录
    function yiDongJiLu24(){
        var myChart = echarts.init($("#yiDongJiLu")[0]);
        var option = {
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            grid: {
                x: 46,
                y:30,
                x2:32,
                y2:40,
                borderWidth: 0
            },
            calculable : true,
            xAxis : [
                {
                    type : 'category',
                    data:['安保部', '售票部', '保洁部', '后勤部', '指导部', '急救部'],

                    splitLine: {
                        show: false
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#a4a7ab',
                            align: 'center'
                        }
                    }
                }
            ],
            yAxis : [
                {
                    type : 'value',
                    splitLine: {
                        show: false
                    },
                    axisLabel: {
                        show: true,
                        textStyle: {
                            color: '#a4a7ab'
                        }
                    }
                }
            ],
            series : [
                {
                    name:'违规次数（次）',
                    type:'bar',
                    barWidth:'30',
                    data:[124, 522, 235, 365, 214, 265, 58, 4,6, 7, 3, 3, 1],
                    itemStyle: {
                        normal: {
                            color:"#269fec"
                        }
                    }

                }
            ]
        };
        myChart.setOption(option);
    }
    //行业板块
    function banKuaiHangYe31(){
        var myChart = echarts.init($("#userContainerPersonal")[0]);
        var option = {
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            grid: {
                x: 46,
                y:30,
                x2:32,
                y2:40,
                borderWidth: 0
            },
            xAxis:  {
                type: 'value',
                x:'180',
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }
            },
            yAxis: {
                type: 'category',
                data: ['陈杰','李进','张佳倩','孙林','李杰'],
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }
            },
            series: [
                {
                    name: '出勤率（%）',
                    type: 'bar',
                    stack: '总量',
                    label: {
                        normal: {
                            show: true,
                            position: 'insideRight'
                        }
                    },
                    data: [60, 72, 85, 96, 99],
                    itemStyle: {
                        normal: {
                            color:"#45c0ff"
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    }
    //概念板块
    function banKuaiGaiNian32(){
        var myChart = echarts.init($("#userContainerPersonal2")[0]);
        var option = {
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            grid: {
                x: 46,
                y:30,
                x2:32,
                y2:40,
                borderWidth: 0
            },
            xAxis:  {
                type: 'value',
                x:'180',
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }
            },
            yAxis: {
                type: 'category',
                data: ['陈杰','李进','张佳倩','孙林','李杰'],
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }
            },
            series: [
                {
                    name: '出勤率（%）',
                    type: 'bar',
                    stack: '总量',
                    label: {
                        normal: {
                            show: true,
                            position: 'insideRight'
                        }
                    },
                    data: [60, 72, 85, 96, 99],
                    itemStyle: {
                        normal: {
                            color:"#45c0ff"
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    }
    //低估值板块
    function banKuaiDiGuZhi33(){
        var myChart = echarts.init($("#userContainerPersonal3")[0]);
        var option = {
            tooltip : {
                trigger: 'axis',
                axisPointer : {            // 坐标轴指示器，坐标轴触发有效
                    type : 'shadow'        // 默认为直线，可选为：'line' | 'shadow'
                }
            },
            grid: {
                x: 46,
                y:30,
                x2:32,
                y2:40,
                borderWidth: 0
            },
            xAxis:  {
                type: 'value',
                x:'180',
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }
            },
            yAxis: {
                type: 'category',
                data: ['陈杰','李进','张佳倩','孙林','李杰'],
                splitLine: {
                    show: false
                },
                axisLabel: {
                    show: true,
                    textStyle: {
                        color: '#a4a7ab'
                    }
                }
            },
            series: [
                {
                    name: '出勤率（%）',
                    type: 'bar',
                    stack: '总量',
                    label: {
                        normal: {
                            show: true,
                            position: 'insideRight'
                        }
                    },
                    data: [60, 72, 85, 96, 99],
                    itemStyle: {
                        normal: {
                            color:"#45c0ff"
                        }
                    }
                }
            ]
        };
        myChart.setOption(option);
    }


    shangZhengZhiShu11()
    // shenZhengZhiShu12()
    chuangYeBanZhiShu13()
    keChuangBanZhiShu14()

    zhangDieFengXi22()
    tengLuoXian23()
    yiDongJiLu24()

    banKuaiHangYe31()
    banKuaiGaiNian32()
    banKuaiDiGuZhi33()
</script>

